<?php
 namespace App\Http\Controllers\home;
 use App\Http\Controllers\Controller;
 use Illuminate\Support\Facades\Input;
 use Illuminate\Support\Facades\Schema;
 use DB;
 class FootController extends Controller{
      public function foot_list($u_id){
            $data = DB::table('mo_footpint')->select('g_id')->where(array('u_id'=>$u_id))->get();
            if($data){
                  foreach ($data as $k => $v) {
                        $goods[] =$v->g_id;
                  }
                  $g_id = DB::table('mo_goods')->whereIn('g_id',$goods)->get();
                  return view('home.foot.foot_list',array('data'=>$g_id));  
            }else{
                  return view('home.foot.foot_list',array('data'=>$data));
            }
		
      }
 }
?>

